package de.dhbw.ka.tit09.picsim.ui;

import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;

/**
 * Label provider for the memory tables in the GUI (EEPROM and RAM memory).
 * 
 * @author Andreas Bender
 * 
 */
public class MemoryTableLabelProvider extends LabelProvider implements
		ITableLabelProvider {

	public Image getColumnImage(Object element, int columnIndex) {
		return null;
	}

	public String getColumnText(Object element, int columnIndex) {
		int[] memoryRow = (int[]) element;
		return Integer.toHexString(memoryRow[columnIndex]).toUpperCase();
	}

}
